package rhc.spider.middlewareManage;

import java.util.List;

import rhc.spider.crawler.Crawler;
import rhc.spider.engine.Engine;
import rhc.spider.middleware.Middleware;
import rhc.spider.setting.Setting;


/**基础中间件管理器
 * @author lenovo1
 *
 */
public abstract class BasicMiddlewareManage<T extends Middleware> implements MiddlewareManage{

	protected Crawler crawler;
	
	protected List<T> middlewareList;
	
	protected Setting setting;
	
	public BasicMiddlewareManage(Crawler crawler,Setting setting){
		this.crawler=crawler;
		createMiddlewareList();
	}
	
	abstract protected void createMiddlewareList();
	
}
